// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'GatherId',
        footer: "Foots",
        cnName: '数据采集配置',
        name: 'Gather',
        url: "/Gather/",
        sortName: "GatherId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"ProcessLine":[],"Serverip":"","Serverport":"","Localport":"","AcquisitionInterval":"","Communication":[],"Serial":"","BaudRate":"","Front":"","Rabbitmqurl":""};
    const editFormOptions = [[{"dataKey":"工艺线路","data":[],"title":"工艺产线","field":"ProcessLine","type":"selectList"}],
                              [{"title":"server ip","field":"Serverip","type":"text","required":true}],
                              [{"title":"server port","field":"Serverport","type":"text","required":true}],
                              [{"title":"local port","field":"Localport","type":"text","required":true}],
                              [{"title":"采集间隔","field":"AcquisitionInterval","type":"text","required":true}],
                              [{"dataKey":"通讯类型","data":[],"title":"通讯类型","field":"Communication","type":"selectList","required":true}],
                              [{"dataKey":"状态","data":[],"title":"是否启用串口","field":"Serial","type":"radio","required":true}],
                              [{"title":"波特率","required":true,"field":"BaudRate","type":"text"}],
                              [{"title":"前端看板url","required":true,"field":"Front","type":"text"}],
                              [{"title":"rabbitmq url","required":true,"field":"Rabbitmqurl","type":"text"}]];
    const searchFormFields = {"ProcessLine":[]};
    const searchFormOptions = [[{"dataKey":"工艺线路","data":[],"title":"工艺产线","field":"ProcessLine","type":"selectList"}]];
    const columns = [{field:'GatherId',title:'主键',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ProcessLine',title:'工艺产线',type:'string',bind:{ key:'工艺线路',data:[]},width:110,align:'left'},
                       {field:'Serverip',title:'server ip',type:'string',width:110,align:'left'},
                       {field:'Serverport',title:'server port',type:'int',width:110,align:'left'},
                       {field:'Localport',title:'local port',type:'int',width:110,align:'left'},
                       {field:'AcquisitionInterval',title:'采集间隔',type:'int',width:110,align:'left'},
                       {field:'Communication',title:'通讯类型',type:'string',bind:{ key:'通讯类型',data:[]},width:110,align:'left'},
                       {field:'Serial',title:'是否启用串口',type:'int',bind:{ key:'状态',data:[]},width:110,align:'left'},
                       {field:'BaudRate',title:'波特率',type:'string',width:110,hidden:true,require:true,align:'left'},
                       {field:'Front',title:'前端看板url',type:'string',width:110,hidden:true,require:true,align:'left'},
                       {field:'Rabbitmqurl',title:'rabbitmq url',type:'string',width:110,hidden:true,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}